package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * IP黑名单表 实体类
 * 表名：haifan_ip_black_list
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "haifan_ip_black_list")
public class HaifanIpBlackList implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * IP地址
     */
    @Column(name = "ip_addr", length = 40)
    private String ipAddr;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", length = 20)
    private String createTime;
    
    /**
     * 修改时间
     */
    @Column(name = "update_time", length = 20)
    private String updateTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by")
    private Long createBy;
    
    /**
     * 修改人
     */
    @Column(name = "update_by")
    private Long updateBy;
    
    /**
     * 0：正常，1：删除
     */
    @Column(name = "is_del")
    private Boolean isDel;
    
    @Override
    public String toString() {
        return "HaifanIpBlackList{" +
            "id=" + id +
            ", ipAddr=" + ipAddr +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", createBy=" + createBy +
            ", updateBy=" + updateBy +
            ", isDel=" + isDel +
        '}';
    }
} 